﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frm_PutInUploadList.aspx.cs"
    Inherits="SaleSystem.ComPage.frm_PutInUploadList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ext:PageManager runat="server" ID="PageManager" EnableAjax="false" />
        <ext:Form runat="server" ID="Form2" EnableBackgroundColor="false" BodyPadding="5px"
            ShowHeader="false">
            <Rows>
                <ext:FormRow>
                    <Items>
                        <ext:ContentPanel runat="server" ID="contentPanel" BodyPadding="10px" ShowHeader="false"
                            ShowBorder="false">
                   <ext:HyperLink runat="server" ID="hl_down" Text="1）单击此处下载模板" NavigateUrl="../Temp/Input.xls" Label="单击此处下载模板"></ext:HyperLink><br />
                    2）选择上传路径： <asp:FileUpload runat="server" ID="bn_Excel" /> 
                        </ext:ContentPanel>
                    </Items>
                </ext:FormRow>
                <ext:FormRow>
                    <Items>
                        <ext:Button runat="server" ID="bnUpload" Text="下一步" OnClick="bnUpload_Click">
                        </ext:Button>
                        <ext:Button runat="server" ID="bnInput" Text="导入" ConfirmText="确定将下面的产品信息导入到此进货单中(<font color='red'>将会覆盖该进货单现有的产品明细</font>)，错误的信息不会导入，确认导入？" ConfirmTitle="操作提示！" ConfirmIcon="Question" OnClick="bnInput_Click" Hidden="true">
                        </ext:Button>
                    </Items>
                </ext:FormRow>
            </Rows>
        </ext:Form>
        <ext:Form runat="server" ID="Form3" EnableBackgroundColor="false" BodyPadding="5px"
            ShowHeader="false">
            <Rows>
                <ext:FormRow>
                    <Items>
                        <ext:Grid runat="server" ID="gv_List" EnableBackgroundColor="true" Title="导入的数据列表"
                            IsDatabasePaging="true" DataKeyNames="ProductInfo" EnableRowNumber="true" AllowPaging="true" AutoHeight="true"
                            OnPageIndexChange="gv_List_PageIndexChange">
                            <Columns>
                                <ext:BoundField ColumnID="产品类别" DataField="产品类别" DataTooltipField="产品类别" HeaderText="产品类别"
                                    Width="100px" />
                                <ext:BoundField ColumnID="产品编码" DataField="产品编码" DataTooltipField="产品编码" HeaderText="产品编码"
                                    Width="100px" />
                                <ext:BoundField ColumnID="产品名称" DataField="产品名称" DataTooltipField="产品名称" HeaderText="产品名称"
                                    Width="80px" />
                                <ext:BoundField ColumnID="号码" DataField="号码" DataTooltipField="号码" HeaderText="号码"
                                    Width="80px" />
                                <ext:BoundField ColumnID="数量" DataField="数量" DataTooltipField="数量" HeaderText="数量"
                                    Width="80px" />
                                <ext:BoundField ColumnID="成本价" DataField="成本价" DataTooltipField="成本价" HeaderText="成本价"
                                    Width="80px" />
                                <ext:BoundField ColumnID="零售价" DataField="零售价" DataTooltipField="零售价" HeaderText="零售价"
                                    Width="80px" />
                                    <ext:CheckBoxField DataField="IsError" HeaderText="状态"  Width="60px"/>
                                    <ext:BoundField ColumnID="状态" DataField="ErrorMessage" DataTooltipField="ErrorMessage" HeaderText="错误信息"
                                    Width="80px" />   
                            </Columns>
                        </ext:Grid>
                    </Items>
                </ext:FormRow>
            </Rows>
        </ext:Form>
    </div>
    </form>
</body>
</html>
